package com.assembly.util.tools;


import com.assembly.util.exception.AmyException;
import lombok.Getter;

import java.text.SimpleDateFormat;
import java.util.Date;


@Getter
public class ExceptionResult {
    private int status;
    private String message;
    private String timestamp;

    public ExceptionResult(AmyException e) {
        this.status = e.getStatus();
        this.message = e.getMessage();
        this.timestamp =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
    }
}